<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
<div th:fragment="copy"> &copy; 2011 The Good Thymes Virtual Grocery </div>
<div th:fragment="header"> &copy;this is page header </div>
<div th:fragment="footer(name1,name2)"> &copy;this is page footer<br>
    <span th:text="${name1}" style="color: red"></span><br>
    <span th:text="${name2}" style="color: aqua"></span><br>
</div>

</body>
</html>